package edu.sctu.zhengsenwen.month201506.day20150614.textthreadutil;

/**
 * Created by user15 on 2015/6/15.
 */
public class SimpleThread1 extends Thread {

    public SimpleThread1(String string){

        super(string);
    }

    public void run(){

        for(int i=0;i<8;i++){

            System.out.println(i+" "+getName());

            try{

                sleep((long)(1000));
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }

        System.out.println(getName()+"完成");

    }

}
